Skip to content

Update telemetry dependency constraint#257

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/telemetry-04
Jun 2, 2026
Merged

Update telemetry dependency constraint#257
ChiragAgg5k merged 1 commit into
mainfrom
fix/telemetry-04

Conversation

@ChiragAgg5k
Copy link
Copy Markdown
Member

Summary

  • Bump utopia-php/telemetry from 0.2.* to ^0.4.
  • Update composer.lock to resolve utopia-php/telemetry 0.4.0.

Why

Circuit breaker 0.3.1 uses the telemetry 0.4 lazy metric API. Keeping downstream libraries pinned to telemetry 0.2.* allows Composer to resolve an incompatible runtime combination where Counter::lazy() / Gauge::lazy() are missing.

Tests

  • composer validate --strict
  • composer format:check
  • composer test (fails in local environment because e2e hosts fpm and swoole are not resolvable)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

k6 benchmark

Throughput Requests Fail rate p50 p95
5329 req/s 373113 0% 8.06 ms 15.49 ms

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Jun 2, 2026

Greptile Summary

This PR bumps the utopia-php/telemetry dependency from 0.2.* to ^0.4 (resolving to 0.4.0 in the lock file) to unblock downstream libraries that depend on the lazy metric API (Counter::lazy() / Gauge::lazy()) introduced in 0.4.

  • composer.json: single-line constraint update; all other packages and their resolved versions are unchanged.
  • composer.lock: only the utopia-php/telemetry block is updated (version, git ref, dist URL, source URL, timestamp); content hash is refreshed accordingly.
  • src/Http/Http.php uses createHistogram and createUpDownCounter from the telemetry adapter — neither of these surface APIs appears to have changed between 0.2 and 0.4, so no source changes are needed.

Confidence Score: 4/5

Safe to merge; the change is a targeted dependency version bump with no source code modifications and a correctly regenerated lock file.

The bump skips 0.3.* entirely, so two minor versions of a 0.x library are bypassed. The APIs actually consumed in Http.php (createHistogram, createUpDownCounter, Adapter, Histogram, UpDownCounter) appear unchanged at 0.4.0, but that compatibility cannot be statically confirmed without reading the upstream library diff. The only flagged issue is a cosmetic constraint-style inconsistency (^0.4 vs the project-wide x.y.* pattern).

No files require special attention beyond the minor style note on composer.json.

Important Files Changed

Filename Overview
composer.json Bumps utopia-php/telemetry constraint from 0.2.* to ^0.4; constraint style is inconsistent with all other utopia-php/* dependencies which use x.y.* wildcards, though both forms are functionally equivalent for a 0.x library in Composer.
composer.lock Lock file regenerated to resolve utopia-php/telemetry at 0.4.0; no other package versions changed.

Reviews (1): Last reviewed commit: "Update telemetry dependency constraint" | Re-trigger Greptile

Comment thread composer.json
@ChiragAgg5k ChiragAgg5k merged commit 0396a95 into main Jun 2, 2026
11 checks passed
@ChiragAgg5k ChiragAgg5k deleted the fix/telemetry-04 branch June 2, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants